#!/bin/bash
# Hakix v1.0 is released under the General Public license (Please refer to GPL.txt)
# Written by frenchninja@gmail.com. See http://code.google.com/p/hakix
# Inspired by Automatix by arnieboy

zenity --info --title "Hakix v1.0" --text $"Hakix written by frenchninja (@gmail.com)\n\nNotes: Some have reported that the 'Gnome/KDE/Xfce Desktop' commands remove programs that they shouldn't. This seems to be a bug with the 'aptitude install desktop $foo-desktop command. Can't help, I'm afraid. Use at your own risk.\n\nPlease make sure you close Synaptic or any apt-get processes before clicking ok.\n\nSuperfluous disclaimer: The author does not take any responsibility for your use of this program. Any installation you make of any program considered illegal in your country is your own decision.";

function repositories {
	mv -f /etc/apt/sources.list /etc/apt/sources.list_backup_`date +%Y%m%d%H%M`
	cp /usr/local/bin/hakix/conf/sources.list /etc/apt/sources.list
	gpg --keyserver hkp://wwwkeys.eu.pgp.net --recv-keys 1F41B907
	gpg --armor --export 1F41B907 | apt-key add -
	apt-get update
	}
repositories
gksu -u root python /usr/local/bin/hakix/hakix.py
